﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using University.Workshop.Presenters;

namespace University.Workshop.Tests.mock
{
    
    public class RegMockEmployee: IRegistrationEmployeeView
    {

        #region IRegistrationEmployeeView Members

        private string message;
        public string CI{ get; set; }

        public string NameEmployee { get; set; }

        public string Surname { get; set; }

        public string WorkArea { get; set; }

        public string Email { get; set; }

        public string Telephone { get; set; }

        public string Address { get; set; }

        #endregion

        #region IBaseView Members

        public string MessageWarnings
        {
            set { message = value; }
            get { return message; }
        }
        
        public void FillValidateData() 
        {
            Random rand = new Random();
            CI = string.Empty;
            do
            {
                CI += rand.Next(0, 9).ToString();
            } while (CI.Length < 8);

            NameEmployee = "andress";
            Surname = "peredo";
            WorkArea = "cocina";
            Email = "rom" + rand.Next(int.MaxValue) + "@hotmail.com"; 
            Telephone = "548754548"; 
            Address = "Av. Santivañes"; 

        }
        #endregion
    }
}
